# -*- coding: utf-8 -*-
"""
@Time ： 2025/5/20 14:48
@Auth ： 九问
@File ：yaml_utils.py
@IDE ：PyCharm
@Email : 2750826557@qq.com
"""
import yaml


def read_yaml():
    with open("extract.yaml", encoding="utf-8") as f:
        value = yaml.safe_load(f)
        return value


def read_testcase(yaml_path):
    with open(yaml_path, encoding="utf-8") as f:
        case_li = yaml.safe_load(f)
        return case_li

# def write_yaml(data):
#     with open("", encoding="utf-8", mode="a+") as f:
#         yaml.safe_dump(data, f, allow_unicode=True)
#
#
# def clean_yaml():
#     with open("", encoding="utf-8", mode="w") as f:
#         pass
